package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.Strategy;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 区域持久层接口
 */
public interface StrategyRepository extends MongoRepository<Strategy,String> {
    List<Strategy> findByCatalogId(String id);


    List<Strategy> findByDestId(String destId, PageRequest pageRequest);

    List<Strategy> queryByDestName(String keyword);

}
